SetMovieSelection
TheSetMovieSelection
function sets a movie's current selection.
pascal void SetMovieSelection (Movie theMovie, TimeValue selectionTime, TimeValue selectionDuration);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).selectionTime
- Contains a time value specifying the starting point of the current selection.
selectionDuration
- Contains a time value that specifies the duration of the current selection.
DESCRIPTION
If you set theselectionDuration
parameter to a value greater than the movie's duration,SetMovieSelection
automatically adjusts the duration of the selection to correspond to the difference between the value specified in theselectionTime
parameter and the end of the movie.ERROR CODES
invalidMovie -2010 This movie is corrupted or invalid invalidTime -2015 This time value is invalid SEE ALSO
You can use theGetMovieSelection
function, described in the next section, to obtain information about a movie's current selection.